home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
util
/
text
/
xes.lha
/
XES
/
REXX
/
Quit.xdme
< prev
next >
Wrap
Text File
|
1995-08-01
|
721b
|
30 lines
/* $VER: Quit.xdme 1.0 (01 Aug 1995) */
/* Copyright © 1994 Fergus Duniho */
if ~show("L","rexxreqtools.library") then
if ~addlib("rexxreqtools.library", 0, -30) then exit
options results
'rxresult $fname'
name = result
'rxresult $modified'
m = result
if m = 0 then do
tstr = ""
btext = "Quit" name || "?"
gadtxt = " _Quit | _Cancel "
end
else do
tstr = "*** Text has been modified!!! ***"
btext = "DO YOU REALLY WANT TO QUIT" name || "?"
gadtxt = " _Quit | _Save & Quit | _Cancel "
end
tagstr = "rt_reqpos=reqpos_centerscr"
call rtezrequest(btext, gadtxt, tstr, tagstr)
if rtresult = 2 then DO
rx "XES:Rexx/SaveFile"
END
if rtresult > 0 then do
'viewmode off modified off quit'
end